#base image 基础镜像
FROM openjdk:8-jdk-alpine

#MAINTAINER
MAINTAINER shuang

# VOLUME /tmp
#指定好工作目录，后面就会以这个作为相对路径
WORKDIR /home/shuang/smcp/eureka-cluster

#添加eureka-cluster源码包
ADD target/eureka-cluster-0.0.1-SNAPSHOT.jar eureka-cluster.jar

# RUN ["sh", "-c",'touch /home/misas/findbugs/findbugs.jar']
ENV JAVA_OPTS=""
#ENTRYPOINT [ "sh", "-c", "touch -r /home/shuang/smcp/eureka-cluster/eureka-cluster.jar"]
ENTRYPOINT [ "java", "-jar", "/home/shuang/smcp/eureka-cluster/eureka-cluster.jar"]